package com.chainyoung.trademarket.mvp.contract;

import com.chainyoung.common.bean.UserInfo;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.trademarket.di.module.FindData;
import com.chainyoung.trademarket.entity.IndexApp;
import com.chainyoung.trademarket.entity.IndexData;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface IndexContract {

    interface View extends IView {

        void onGetIndexAppsSuccess(IndexData data);

        void onGetIndexAppsFailed();

        void onGetUserInfoSuccess(UserInfo userInfo);

    }

    interface Model extends IModel {
        Flowable<IndexData> getIndexApps(TreeMap<String, Object> map);
        Flowable<UserInfo> getUserInfo(TreeMap<String,Object> map);
    }

}
